package entity;

import java.util.Date;

public class BookInfo {
	private Integer bookId;
	private String bookName;
	private Integer typeID;
	private Date createDate;
	//在bookinfo从创建 booktype 用于存储对应信息(关键字段是typeID)
	private BookType bookType;
	private String img;
	
	public Integer getBookId() {
		return bookId;
	}
	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public Integer getTypeID() {
		return typeID;
	}
	public void setTypeID(Integer typeID) {
		this.typeID = typeID;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public BookInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public BookInfo(String bookName, Integer typeID) {
		super();
		this.bookName = bookName;
		this.typeID = typeID;
	}
	public BookInfo(String bookName, Integer typeID, Date createDate) {
		super();
		this.bookName = bookName;
		this.typeID = typeID;
		this.createDate = createDate;
	}
	public BookType getBookType() {
		return bookType;
	}
	public void setBookType(BookType bookType) {
		this.bookType = bookType;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	@Override
	public String toString() {
		return "BookInfo [bookId=" + bookId + ", bookName=" + bookName + ", typeID=" + typeID + ", createDate="
				+ createDate + ", bookType=" + bookType + ", img=" + img + "]";
	}
	public BookInfo(String bookName, Integer typeID, Date createDate, BookType bookType, String img) {
		super();
		this.bookName = bookName;
		this.typeID = typeID;
		this.createDate = createDate;
		this.bookType = bookType;
		this.img = img;
	}
	
	
}
